import {api} from "../boot/axios.js";

const sendUrl = "/road";
const headers = {
  "Content-Type": "application/json",
  "Access-Control-Allow-Origin": "*",
};

export const getRoadInfo =async (start, end,type) => {
  let data = {
    start: start,
    end: end,
    type: type
  }
  let result = await api.post(sendUrl,data, {
    headers: headers,
  })
  return result
}



